package com.beep.erp.model.earlystage.log;

import com.beep.erp.common.bean.EarlyStageListBean;
import com.beep.erp.common.bean.TransferLogBean;
import com.beep.erp.http.HttpRetrofit;
import com.beep.erp.http.RetryWhenNetworkException;
import com.beep.erp.model.transfer.TransferLogListContract;

import rx.Observable;

/**
 * Created by Jolly on 2018/8/2.
 */

public class StockLogListModel implements StockLogListContract.Model {
    @Override
    public Observable<EarlyStageListBean> getStockLogList(String sign, String timeStamp, int pageSize, int pageNo) {
        return HttpRetrofit.getInstance().apiService.getStockLogList(sign, timeStamp, pageSize, pageNo).compose(HttpRetrofit.toSubscribe()).compose(HttpRetrofit.toTransformer()).retryWhen(new RetryWhenNetworkException());
    }

}
